import { createRouter, createWebHistory } from 'vue-router'
import login from '@/views/login/login.vue'
import none4 from '@/views/404/index.vue'
import { setupPermission } from './permission.js'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    // 基础路由
    {
      path: '/login',
      name: 'login',
      component: login,
    },
    {
      path: '/404',
      name: '404',
      component: none4,
    },
    // {
    //   path: '/recharge',
    //   name: 'recharge',
    //   component: recharge,
    // },
  ],
})
setupPermission(router)
export default router
